<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 字符串模板</title>
</head>
<body>
<h2>字符串内的引号</h2>
<p>通过使用模板字面量，您可以在字符串中同时使用单引号和双引号：</p>

<p id="demo"></p>

<script>
  let text=`He's often called "Johnny"`;
  document.getElementById("demo").innerHTML=text;
</script>
</body>
</html>